package com.kkang.betmachine;

import com.kkang.betmachine.config.MatheType;
import com.kkang.betmachine.entity.LanQiuMatche;
import com.kkang.betmachine.entity.Pass;
import com.kkang.betmachine.util.BetCodeUtil;
import com.kkang.betmachine.util.LanQiuBet502;
import com.kkang.betmachine.util.MatcheFactory;

import java.util.List;

/**
 * 投注入口类
 *
 * @author yongk_liu
 **/
public class Main {

    //我
    private static final String USER_TOKEN = "527a2e8e-7956-47ac-af20-a4283de9c8e2";
    private static final String STORE_ID = "ds51";

    //继承
//    private static final String USER_TOKEN = "12070d95-cd19-484f-8647-ceca28fcee5f";
//    private static final String STORE_ID = "ds15";


    public static void main(String[] args) {
        Pass pass = new Pass(USER_TOKEN, STORE_ID);
        MatcheFactory matcheFactory = MatcheFactory.initFactory(MatheType.LanQiuMix);
        List<LanQiuMatche> matchList = matcheFactory.getMaches();
        List<String> betCodes = BetCodeUtil.splitMixLanQiuCode(matchList);


        LanQiuBet502.bet(pass, betCodes, 10);//给这个人随机投注10注
    }

}
